import request from '@/utils/request'
const apix = 'dev-api'
// api地址
const api = {
	building_list: apix + '/room/building/list',
	building_export: apix + '/room/building/export',
	room_building: apix + '/room/building',
	// room_building: apix + '/room/building',
	room_buildingId: apix + '/room/building/',
}

//查询租房信息列表
export function buildingList(obj) {
	return request.get(api.building_list, {
		...obj
	})
}
//导出租房信息列表
export function buildingExport(obj) {
	return request.post(api.building_export, {
		...obj
	})
}
//获取租房信息详细信息
export function buildingId(id) {
	return request.get(api.room_buildingId + id)
}
//新增租房信息
export function addbuilding(obj) {
	return request.post(api.room_building, {
		...obj
	})
}
//修改租房信息
export function putbuilding(obj) {
	return request.put(api.room_building, {
		...obj
	})
}
//删除租房信息
export function delbuilding(id) {
	return request.delete(api.room_buildingId + id)
}